package com.spboot.app.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.jntoo.db.DB;
import java.io.Serializable;
import java.util.*;

@TableName("changdi")
public class Changdi implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String bianhao;

    private String mingcheng;

    private Integer leixing;

    private String tupian;

    private String yonglei;

    private String dengguang;

    private String feilei;

    private Double jiage;

    private String zhuangtai;

    private String shiyongxuzhi;

    private String shoufeibiaozhun;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getYuyueCount() {
        return DB.name("yuyue").where("changdiid", id).count();
    }

    public String getBianhao() {
        return bianhao;
    }

    public void setBianhao(String bianhao) {
        this.bianhao = bianhao == null ? "" : bianhao.trim();
    }

    public String getMingcheng() {
        return mingcheng;
    }

    public void setMingcheng(String mingcheng) {
        this.mingcheng = mingcheng == null ? "" : mingcheng.trim();
    }

    public Integer getLeixing() {
        return leixing;
    }

    public void setLeixing(Integer leixing) {
        this.leixing = leixing == null ? 0 : leixing;
    }

    public String getTupian() {
        return tupian;
    }

    public void setTupian(String tupian) {
        this.tupian = tupian == null ? "" : tupian.trim();
    }

    public String getYonglei() {
        return yonglei;
    }

    public void setYonglei(String yonglei) {
        this.yonglei = yonglei == null ? "" : yonglei.trim();
    }

    public String getDengguang() {
        return dengguang;
    }

    public void setDengguang(String dengguang) {
        this.dengguang = dengguang == null ? "" : dengguang.trim();
    }

    public String getFeilei() {
        return feilei;
    }

    public void setFeilei(String feilei) {
        this.feilei = feilei == null ? "" : feilei.trim();
    }

    public Double getJiage() {
        return jiage;
    }

    public void setJiage(Double jiage) {
        this.jiage = jiage == null ? 0.0f : jiage;
    }

    public String getZhuangtai() {
        return zhuangtai;
    }

    public void setZhuangtai(String zhuangtai) {
        this.zhuangtai = zhuangtai == null ? "" : zhuangtai.trim();
    }

    public String getShiyongxuzhi() {
        return shiyongxuzhi;
    }

    public void setShiyongxuzhi(String shiyongxuzhi) {
        this.shiyongxuzhi = shiyongxuzhi == null ? "" : shiyongxuzhi.trim();
    }

    public String getShoufeibiaozhun() {
        return shoufeibiaozhun;
    }

    public void setShoufeibiaozhun(String shoufeibiaozhun) {
        this.shoufeibiaozhun = shoufeibiaozhun == null ? "" : shoufeibiaozhun.trim();
    }
}
